#include <stdio.h>
#include <stdlib.h>
#include "affichage.h"

void affichage(Terrain *terrain, ListeCreatures *listecreatures, ListeTours *listetours)
{
     int i,j;
     Creature *creature;

     majTerrain(terrain,listecreatures,listetours);

    for(i=0;i<=20;i++)
    {
        for(j=0;j<=20;j++)
        {
            printf("%c",terrain->ter[i][j]);
        }
        printf("\n");
    }

    printf("\nCreatures: %d", listecreatures->nbCreatures);

    for(i=0;i<listecreatures->nbCreatures;i++)
    {
        creature=listecreatures->tabCreatures[i];
        printf("\n%d: Posx:%d, Posy:%d",i,creature->positionx,creature->positiony);
    }
}
